import request from '@/utils/request'

// 用户登录
export const login = (data?: any) => request('/user/login', 'post', data)

// 注册
export const register = (data?: any) => request('/user', 'post', data)

// 判断 token 是否失效
export const checkToken = () => request('/user/c', 'get')

// 获取用户的分组和文件夹信息
export const getGroupAndFolderApi = () => request('/user', 'get')
